package com.framework.Module.system.token;

import com.framework.Table.Table;
import com.framerock.baselib.Rock;

public class Tabletoken  extends  Table{
  

    protected void initTable() {
        this.tablename   = "token";
        this.tablenamesm = "用户登录记录";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "906",
                "isxt", "1",
        });

        this.addfields("uid", "int(11)", "0", "用户ID");
        this.addfields("token", "varchar(50)", "", "唯一token");
        this.addfields("web", "varchar(100)", "", "浏览器", new String[]{
                "isss","1",
        });
        this.addfields("cfrom", "varchar(20)", "", "来源");
        this.addfields("ip", "varchar(50)", "", "IP");
        this.addfields("device", "varchar(100)", "", "设备ID");
        this.addfields("adddt", "datetime", "null", "登录时间", new String[]{
                "ispx","1",
        });
        this.addfields("moddt", "datetime", "null", "最后时间", new String[]{
                "ispx","1",
        });
        this.addfields("ispush", "tinyint(1)", "0", "可推送@@APP的推送");
        this.addfields("pushtoken", "varchar(300)", "", "推送Token");
        this.addfields("explain", "varchar(100)", "", "说明");
        this.addfields("token", "UNIQUE KEY", "`token`", "token主键");
    }
}
